package util;

import common.TestCommonEntity;

public class Thread2 implements Runnable {

	TestCommonEntity testCommonEntity;
	int i;
	String name = null;

	public Thread2(TestCommonEntity testCommonEntity, String name) {
		this.testCommonEntity = testCommonEntity;
		this.name = name;
	}

	public void run() {
		// for (int i = 0; i < 100; i++)
		// testCommonEntity.get();
		// testCommonEntity.get();
		// }
//		synchronized (testCommonEntity) {
//			System.out.println("==thread" + name + "start");
//			testCommonEntity.notify();
//			System.out.println("==thread" + name + "end");
//		}
		testCommonEntity.get3();
	}
}